﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed

#pragma once
#include "GcmpMathInterface.h"

#include "GbmpDefines.h"
#include "MathUtils.h"
#include "Vector2d.h"
#include "Vector3d.h"
#include "Vector4d.h"

namespace gcmp
{
    /// \brief  Vector4d的工具类
    ///
    /// 
    class GCMP_MATH_INTERFACE_EXPORT Vector4dUtils
    {
    public:

        /// \brief   判断向量是否在给定误差下相等
        ///
        /// \param vec1  向量
        /// \param vec2  另一向量
        /// \param typeTol  误差
        /// \return   true: 相等   false: 不等
        static bool IsEqual(const Vector4d& vec1, const Vector4d& vec2, double typeTol = gcmp::Constants::DOUBLE_EPS);
    };
}


